package lee.vioson.ebook.utils

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import com.luck.picture.lib.utils.ToastUtils

/**
 *Author:viosonlee
 *Date:2023/6/18
 *DESCRIPTION:
 */
@Composable
fun Toast(block: () -> String) {
    val context = LocalContext.current
    ToastUtils.showToast(context, block())
}